
<form id="form_add">
<input type="hidden" name="rate" id="rate" value="" size="12">
<input type="hidden" name="rmb" id="rmb" value="" size="12">
<table>
	<tr>
		<td width="20%" align="right">标题：</td>
		<td width="30%"><input type="text" name="name" value="委托生产合同" size="20"></td>
		<td width="20%" align="right">日期：</td>
		<td width="30%"><input type="text" name="date" id="date" value="{[$smarty.now|date_format:'%Y-%m-%d']}" size="12"></td>
	</tr>
	<tr>
		<td align="right">客户：</td>
		<td colspan="3"><select name='customer' id='customer'>
			{[html_options options=$tecmold_option selected=-]}
		</select> <a href="javascript:void(0)"
			id="customer_x" onclick="Common.toggle(this, '#label_linkman_a')(this)" class="ui-icon ui-icon-circle-triangle-w"
			style="display: inline-table"></a></td>
	</tr>
	<tr id="label_linkman_a">
		<td></td>
		<td colspan="3">{[include file="contact/customer/_linkman.tpl"]}</td>
	</tr>
	<tr>
		<td align="right">供应商：</td>
		<td colspan="3"><input type="text" name="supplier" id="supplier" value="" size="20" title="{[$t.supplier]}"> <a href="javascript:void(0)"
			id="supplier_x" onclick="Common.toggle(this, '#label_linkman')" class="ui-icon ui-icon-circle-triangle-w"
			style="display: inline-table"></a></td>
	</tr>
	<tr id="label_linkman">
		<td></td>
		<td colspan="3">{[include file="_linkman.tpl"]}</td>
	</tr>
	<tr>
		<td align="right">负责人：</td>
		<td><input type="text" name="emp" id="emp" value="" size="12" title="{[$t.emp_|emp:'负责人']}"></td>
		<td align="right">签订日期：</td>
		<td><input type="text" name="t1" id="t1" value="{[$smarty.now|date_format:'%Y-%m-%d']}" size="12"></td>
	</tr>
	<tr>
		<td align="right">签订地点：</td>
		<td><input type="text" name="city" value="中国深圳" size="12"></td>
		<td align="right">交货日期：</td>
		<td><input type="text" name="t2" id="t2" value="{[$t2|date_format:'%Y-%m-%d']}" size="12"></td>
	</tr>
		
	<tr>
		<td align="right">金额：</td>
		<td colspan="3"><input type="text" name="amount" id="amount" value="" size="12" disabled> 
		<select name='currency' id='currency'>
			{[html_options options=$currency_option selected=USD]}
		</select> <label id="label_amount"></label></td>
	</tr>	
	<tr>
		<td align="right">备注：</td>
		<td colspan="3"><textarea rows="8" name="content" cols="55">结算：预付40%定金，走模之后支付60%
装运：装运口岸和目的地 深圳 至 香港 准许分批与转运。
保险：由卖方按发票总金额110％投保至买方港口为止的所有保险，按中国海洋运输保险条款办理。
文件：发票，送货单，检验报告等</textarea></td>
	</tr>
</table>
</form>

<div style="margin-top:10px; margin-bottom:5px; width:700px;float:left;">
<div id="myGrid" style="width:100%;height:160px;"></div>
</div>
<table border="0">
	<tr>
		<td width="420" align="right"></td>
		<td width="80"><div id="amount_t"></div></td>
		<td></td>
	</tr>
</table>

<script type='text/javascript'>
var data = {[$result.item]};
var currency_json = {[$currency]};
</script>

<script type="text/javascript" src="js/finance/contract/columns_add.js?r={[$smarty.now]}"></script>
<script type="text/javascript" src="js/finance/contract/cc.js?r={[$smarty.now]}"></script>
<script type="text/javascript" src="js/finance/contract/my/add.js?r={[$smarty.now]}"></script>
